package com.yhsimon.command;

/**
 * @author： YHSimon
 * @date： 2021-10-09 10:41
 */
public class TvOffCommand implements Command{
    private TvReceiver tv;

    public TvOffCommand(TvReceiver tv){
        this.tv=tv;
    }
    @Override
    public void execute() {
        tv.off();
    }

    @Override
    public void undo() {
        tv.on();
    }
}
